<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/6
 * Time: 10:38
 */

//set_cookie_over_time 是cookie的有效时间
$set_cookie_over_time=2000;
$cookie_expire=time()+2000;
$md5_account=md5($_POST['username'].$_POST['pwd'].time());
setcookie('Token',$md5_account,time()+$set_cookie_over_time);
setcookie('cookie_expire',$cookie_expire,time()+$set_cookie_over_time);
?>
<!DOCTYPE html>
<script>
	window.location.href='user_function.php';
</script>